package com.fm.openinstall.f;

import android.content.*;
import android.os.*;

public class d
{
    public static String a(final Context context, final String s) {
        final StrictMode.ThreadPolicy threadPolicy = StrictMode.getThreadPolicy();
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(threadPolicy).permitDiskWrites().permitDiskReads().build());
        final String string = context.getSharedPreferences("FM_config", 0).getString(s, (String)null);
        StrictMode.setThreadPolicy(threadPolicy);
        return string;
    }

    public static void a(final Context context, final String s, final int n) {
        context.getSharedPreferences("FM_config", 0).edit().putInt(s, n).apply();
    }

    public static void a(final Context context, final String s, final String s2) {
        context.getSharedPreferences("FM_config", 0).edit().putString(s, s2).apply();
    }

    public static void a(final Context context, final String s, final boolean b) {
        context.getSharedPreferences("FM_config", 0).edit().putBoolean(s, b).apply();
    }

    public static int b(final Context context, final String s, int int1) {
        final StrictMode.ThreadPolicy threadPolicy = StrictMode.getThreadPolicy();
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(threadPolicy).permitDiskWrites().permitDiskReads().build());
        int1 = context.getSharedPreferences("FM_config", 0).getInt(s, int1);
        StrictMode.setThreadPolicy(threadPolicy);
        return int1;
    }

    public static boolean b(final Context context, final String s, final boolean b) {
        final StrictMode.ThreadPolicy threadPolicy = StrictMode.getThreadPolicy();
        StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder(threadPolicy).permitDiskWrites().permitDiskReads().build());
        final boolean boolean1 = context.getSharedPreferences("FM_config", 0).getBoolean(s, b);
        StrictMode.setThreadPolicy(threadPolicy);
        return boolean1;
    }
}
